<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<link rel="stylesheet" type="text/css" href="<c:url value="/"/>resources/css/style.css" />
	<title>Home</title>
</head>
<body>
	<div id="content" class='red_bord'>
		<div class="mount hcenter" id="mountHcenter" >
			<jsp:include page="top.jsp"></jsp:include>
			<P>  The time on the server is ${serverTime}. </P>

			<div class="centerContent">

				<div id="mbody" class='red_bord_right'>

					<c:choose>
					    <c:when test="${param.view == 'preorder'}">
							<div id="mbody" class='red_bord_right_block'>
								<jsp:include page="preorderadd.jsp"></jsp:include>
							</div>						    
					    </c:when>	
					    <c:when test="${param.view == 'baseorder'}">
							<div id="mbody" class='red_bord_right_block'>
								<jsp:include page="baseorderadd.jsp"></jsp:include>
							</div>						    
					    </c:when>						    				
					    <c:when test="${param.view == 'parsel'}">
							<div id="mbody" class='red_bord_right_block'>
								<jsp:include page="parseladd.jsp"></jsp:include>
							</div>						    
					    </c:when>
					    <c:when test="${param.view == 'contact'}">
							<div id="mbody" class='red_bord_right_block'>
								<jsp:include page="contactadd.jsp"></jsp:include>
							</div>						    
					    </c:when>
					    <c:when test="${param.edit == 'contact'}">
							<div id="mbody" class='red_bord_right_block'>							
								
								
					
							</div>						    
					    </c:when>					    
					    <c:when test="${param.view == 'order'}">
							<div id="mbody" class='red_bord_right_block'>
								<jsp:include page="order.jsp"></jsp:include>
							</div>						    
					    </c:when>					    					    
					    <c:otherwise>
							<div id="mbody" class='red_bord_right_block'>
								<jsp:include page="preorderlist.jsp"></jsp:include>
							</div>	
							<div id="mbody" class='red_bord_right_block'>
								<jsp:include page="baseorderlist.jsp"></jsp:include>
							</div>	
							<div id="mbody" class='red_bord_right_block'>
								<jsp:include page="parsellist.jsp"></jsp:include>
							</div>	
							<div id="mbody" class='red_bord_right_block'>
								<jsp:include page="contactlist.jsp"></jsp:include>
							</div>								
					    </c:otherwise>
					</c:choose>					    					    

				</div>		
			</div>	
		</div>
	</div>

</body>
</html>
